package com.mioto.ld.module.device.model;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 设备信息实体
 * @author mioto
 * @date 2024-05-15 16:13:50
 */
@Data
@ApiModel(value = "设备信息")
public class Device implements Serializable{

    private static final long serialVersionUID=Device.class.getName().hashCode();
    

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "所属产品id")
    private Integer productId;

    @ApiModelProperty(value = "设备序列表")
    private String sn;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "注册时间")
    private Date registrationTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "出厂时间")
    private Date deliveryTime;

    @ApiModelProperty(value = "固件版本")
    private String firmwareVersion;

    @ApiModelProperty(value = "厂家名称/代号")
    private String manufacturer;

    @ApiModelProperty(value = "邮编")
    private String postalCode;
    @ApiModelProperty(value = "备注")
    private String desc;

    @ApiModelProperty(value = "购买用户id")
    private Integer ownerUser;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "最后上线时间")
    private Date lastOpenDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "最后下线时间")
    private Date lastCloseDate;
}